<?php

namespace App\Modules\Admin\Http\Controllers\Water\Member;

use App\Modules\Admin\Http\Controllers\BaseController;
use App\Modules\Admin\Http\Requests\Water\ScoreRequest;
use App\Modules\Admin\Services\Water\Member\ScoreService;

use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class ScoreController extends BaseController
{
    public function __construct(ScoreService $service)
    {
        $this->service = $service;
    }

    public function create(ScoreRequest $request): JsonResponse
    {
        return $this->createService($request);
    }
     public function getScoreListDetails(Request $request): JsonResponse
     {
         $result = $this->service->getScoreListDetails($request);

         return $this->successJson($result, $this->service->getError());
     }
     public function getIntegraDetailList(Request $request): JsonResponse
     {
         $result = $this->service->getUsersIntegraDetailLists($request->all());

         return $this->successJson($result, $this->service->getError());
     }

}
